clear;
clc;

data = csvread('/tmp/result.txt',1,0,[1 0 115 15]);


res = data(:,3);
for i=4:16
    res = res & data(:,i);
end;

x=data(:,2);
y=res;




plot(data(:,2),sum(data(:,3:15),2)-6,'o')
axis([0 max(x)*1.05 -0.2 7.2])
ylabel('Successrate ')
xlabel('Wrenchspace (force only)')

failures = size(find(y == 0),1)
success = size(find(y == 1),1)